const Mock = require('mockjs')
const data = Mock.mock({
  "banners|5": ["@image(375x200, @color, banner)"],
  "menus": [{
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "一流课程",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }, {
    "name": "更多",
    "id": '@id',
    "image": "@image(50x50, @color, menu)"
  }],
  "tabs|10-20": [{
    "title": '@ctitle(2)',
    "id": '@id',
    "children|10-20": [{
      "id": '@id',
      "image": "@image(200x80, @color)",
      "title": '@ctitle',
      "city": '@city',
      "count|10-10000": 1
    }]
  }],
  "list|50": [{
    "id": '@id',
    "image": "@image(200x80, @color)",
    "title": '@ctitle',
    "city": '@city',
    "count|10-10000": 1,
    "type|1": ["即将开课", "开课中", "已结课"]
  }]
})
const fs = require('fs')
fs.writeFileSync('data.json', JSON.stringify(data))